#!/bin/sh
echo set terminal jpeg > plotfile.gnu
echo set output \"`basename $1 .mst`.jpg\" >> plotfile.gnu
echo set grid      >> plotfile.gnu
echo set autoscale >> plotfile.gnu
echo set datafile separator \",\" >> plotfile.gnu
echo plot \"\< head -365 $1\" u 0:3 title \"$1\" with line >>plotfile.gnu
#Step 2: call gnuplot
gnuplot -p plotfile.gnu
